clear all
set more off
cap log close

****************************************************************************
* This do-file extract data from the demographic files 
*	- lin, year, weight 
* 
* Creates the following Stata file:
*	- weight.dta
* 
****************************************************************************

do "H:\Lavecchia_7086\to-transfer-jan-2022\RESTAT_Replication_Programs\0_Set_Directories.do"


log using "$dir_log\2e_weight.log", replace

* Step 1: load the data from demographic files which contain the weight var

use "$dir_data\demographic_8299.dta"
keep lin__i year wgt2_i
append using "$dir_data\demographic_0016.dta"
keep lin__i year wgt2_i
save "$dir_data\weight.dta", replace 

